cmake_minimum_required(VERSION 3.22 FATAL_ERROR)

project(pjt10 LANGUAGES CXX)

add_executable(pjt10 main.cpp)

include(CPM)

# 通过URI添加指定版本号的依赖库
# CPMAddPackage("gh:fmtlib/fmt@master")

# 通过URI添加指定标签的依赖库
CPMAddPackage("gh:fmtlib/fmt#7.1.3")

CPMAddPackage(NAME add SOURCE_DIR
    ${CMAKE_CURRENT_LIST_DIR}/../11demo_packageProject)

target_link_libraries(pjt10 fmt::fmt add::add)
# target_include_directories(pjt10 PUBLIC ${)